package setup

import "context"

func Setup(ctx context.Context) chan error {
	ConfigInit(ctx)

	LoggerInit(ctx)

	AmqpInit(ctx)

	errc := make(chan error)

	// Interrupt handler.
	ShutdownHandlerRegister(ctx, errc)

	return errc
}
